public class test1 {
    public static void main(String[] args) {
        int cnt = 0, x = 2024;
//        while(x != 1){
//            x = (int)Math.sqrt(x);
//            System.out.println(x+" "+x*x);
//            cnt++;
//        }
        long l = 2L, r = 2024L;
        while(l <= r){
            long mid = (l + r) / 2;
            if(mid*mid*mid > x){
                r = mid - 1;
            }else{
                l = mid + 1;
            }
        }
        r++;
        System.out.println(r+" "+r*r*r);
        System.out.println(r*r*r-x);
    }
}
